package rladidxo.basic;


public class J00_YeonSub01 {
public static void main(String[] args) {
	String[] yoil = {"월","화","수","목","금","토","일"};//변수선언
	int[] num = {1,2,3,4,5};
	String[] gua = {"사과","배","바나나","체리","딸기","포도"};
	int sum=0;
	for(int k:num){
		sum+=k;
	}System.out.println("숫자의 총합은:"+sum+"입니다");//총합
	for(int k=1;k<=yoil.length;k++){
		System.out.print(yoil[k-1]+"요일\t");//요일
	}System.out.println();
	for(int k=1;k<=gua.length;k++){
		System.out.print(gua[k-1]+"\t");//과일
	}System.out.println();
	for(String n:yoil){
		System.out.print(n+"요일\t");//요일
	}System.out.println();
	for(String n:gua){
		System.out.print(n+"\t");//과일
		
	}System.out.println();
	
}
}
